package ee.serge.service;

import ee.serge.client.content.cp.AccountsContent;
import ee.serge.client.content.cp.AutomatedTestingContent;
import ee.serge.client.content.cp.IPContent;
import ee.serge.client.content.cp.LoginContent;
import ee.serge.client.content.cp.article.ArticlesContent;
import ee.serge.client.content.cp.article.ChoosingLenderEditContent;
import ee.serge.client.content.cp.article.ContactEditContent;

public class AdminModule implements Module {

   @Override
   public void handleContentChange(String pageName) {
      if (pageName.equals(LoginContent.getName())) {
         LoginContent.show();
      } else if (pageName.equals(AccountsContent.getName())) {
         AccountsContent.show();
      } else if (pageName.equals(AutomatedTestingContent.getName())) {
         AutomatedTestingContent.show();
      } else if (pageName.equals(IPContent.getName())) {
         IPContent.show();
      } else if (pageName.equals(ArticlesContent.getName())) {
         ArticlesContent.show();
      } else if (pageName.equals(ChoosingLenderEditContent.getName())) {
         ChoosingLenderEditContent.show();
      } else if (pageName.equals(ContactEditContent.getName())) {
         ContactEditContent.show();
      }
   }

}
